class CreateDocuments < ActiveRecord::Migration
  def self.up
    create_table :documents  do |t|
      t.userstamps
      t.timestamps
    end
    add_foreign_key :documents, :document_categories
  end

  def self.down
    remove_foreign_key :documents, :document_categories
    drop_table :documents
  end
end
